import React, { Component } from 'react';

class Person extends Component {
  state = {  } 
  render() { 
    console.log(44,this.props.list);
    return (
      <ul>
        {
          this.props.list.map( p => {
            return <li key={ p.id }>姓名: {p.name}; 年龄: { p.age }</li>
          })
        }
      </ul>
    );
  }
}
 
export default Person;